package com.xy.blog.capacity.controller;

import com.xy.blog.article.api.model.SpecialColumnQuery;
import com.xy.blog.capacity.remote.ArticleCenterService;
import com.xy.blog.core.springmvc.controller.BaseController;
import com.xy.blog.core.springmvc.result.page.PageReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description: 专栏
 * @date 2020/7/19
 */
@Api(value = "BlogHomeController",tags = "专栏")
@RequestMapping("/v1/special-column")
@RestController
public class SpecialColumnController  extends BaseController {

    @Autowired
    private ArticleCenterService articleCenterService;

    /**
     * 首页文章
     * @return
     */
    @PostMapping()
    @ApiOperation(value = "专栏", notes = "专栏", httpMethod = "POST")
    public Object specialColumnList(@RequestBody PageReq<SpecialColumnQuery> req){
        return articleCenterService.specialColumnList(req);
    }


}
